CC=gcc
CFLAGS=-I.
OBJ = suci.o
SBINDIR?=$(DESTDIR)${PREFIX}/sbin
TEST = ./test

LIBS= -luci -lsuci

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

suci: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
	cd $(TEST) && make

install:
	install -d -m 0755 ${SBINDIR}
	install -m 0755 suci ${SBINDIR}

clean:
	rm -f *.o suci
	cd $(TEST) && make clean


